
---@class RedDotsDrawWishListHandler
RedDotsDrawWishListHandler ={};
local this = RedDotsDrawWishListHandler;

function RedDotsDrawWishListHandler.init()
    CloseEvent(Config.EventType.Draw_Wish_list_Update,this.update);
    ListenEvent(Config.EventType.Draw_Wish_list_Update,this.update);
    return this;
end

--
function RedDotsDrawWishListHandler.getFlag(...)
    if logicMgr.FuncOpenManager.isOpen(Config.FuncOpenType.Draw,false) then
        if logicMgr.HeroManager.CheckWishHeroRedpoint() then
            return Config.RedDotsFlagState.Needful
        end
    end
    return Config.RedDotsFlagState.None;
end


function RedDotsDrawWishListHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.drawWishList)
end
